
<%-------------------------------------------------------------------
 * 页面名称：modifyMoneyLimited.jsp
 * 功能描述：设置提现现金额
 * Action:cn.agiledata.bank.myspace.action.AcctLimitAction 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
%>
<script type='text/javascript' src='<%=path%>/js/vnv/tomoney.js'></script>
<script language="javascript">
	function submitlimit(){
		//	var each = document.getElementById('eachlimit').value;
		var all = document.getElementsByName('alllimit')[0].value;
		//	var amount = document.getElementById('tranamount').value;
		//	if(isNaN(each)==true){
		//	alert("请输入数字！");
		//	return;
		//	}
		if(isNaN(all)==true){
			alert("请输入数字！");
			return;
		}
			
		if(all<0.01){
			alert("请输入大于0.01的数字！");
			return;
		}
		//	if(isNaN(amount)==true){
		//	alert("请输入数字！");
		//	return;
		//	}
		var formName = document.forms["0"];
		formName.submit();
	}
</script>

<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				设置提现金额
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" align="left" cellpadding="5" 
					cellspacing="1">
					<html:form action="/acctLimit.do">
						<tr>
							<td height="25" align="right">
								<span class="orang12b">*</span>请设置您的每日提现金额限制：
							</td>
							<td bgcolor="#FFFFFF">
								<label>
									<html:text property="alllimit" styleClass="inputStyle"
										onblur="tomoney('forms[0]','alllimit','hideTransAmt')" />
									元
									<input type="hidden" name="hideTransAmt" value="" />
								</label>
							</td>
						</tr>
						<tr>

							<td bgcolor="#FFFFFF" align="right" colspan="2">
								<table border="0" align="center" cellpadding="3" width="50%"
									cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
									<tr>
										<td bgcolor="#fffdf5">
											<table border="0" cellpadding="3" cellspacing="0">
												<tr>
													<td width="3%" height="25" valign="top"
														style="border-bottom:1px solid #ccc;"></td>
													<td width="97%" align="left" class="red12b"
														style="border-bottom:1px solid #ccc;">
														特别提醒
													</td>
												</tr>
												<tr>
													<td valign="top">
														&nbsp;
													</td>
													<td align="left" class="font_gray">
														<span class="text9green"> </span>最高不得高于
														<span class="redColor12px"><bean:write
																name="AcctLimitForm" property="maxAlllimit" /> </span>
														元，您当前的金额限制为
														<span class="redColor12px"><bean:write
																name="AcctLimitForm" property="alllimit" /> </span> 元。
													</td>
												</tr>
											</table>
										</td>
									</tr>

								</table>
							</td>
						</tr>
						<tr>
							<logic:notEqual name="AcctLimitForm" property="errorMsg" value="">
								<tr>
									<td height="25" align="center" class="twoSiderLine">
										&nbsp;
										<font color="#FF0000"><bean:write name="AcctLimitForm"
												property="errorMsg" />！</font>
									</td>
								</tr>
							</logic:notEqual>
						
							<td height="25" colspan="2" align="center">
								<input type="button" name="sure" value="确 定"
									class="button_style" onclick="submitlimit();" />
								<input type="button" name="return" value="返 回"
									class="button_style"
									onclick="location.href='accountInfo.do?showTab=3'" />
							</td>
						</tr>
					</html:form>
				</table>
			</div>
		</div>
	</div>
</div>

